public class PC {
    CPU cpu;
    HardDisk HD;
    void setCpu(CPU cpu){
        this.cpu=cpu;
    }
    void setHD(HardDisk HD){
        this.HD=HD;
    }
    void show(){
        System.out.println("cpu:"+cpu.getSpeed());
        System.out.println("HD:"+HD.getAmount());
    }
}
